FROM node:12-alpine

RUN mkdir /app
WORKDIR /app
COPY . .
RUN npm config set registry https://registry.npm.taobao.org && npm i --production

EXPOSE 8080
ENTRYPOINT ["node", "app.js"]
